package com.zbf.config.client.web;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

/**
 * 作者：LCG
 * 创建时间：2019/3/26 13:41
 * 描述：
 */

@RestController
@RefreshScope
public class TestConfigClientController {

    @Value ( "${test0.tt}" )
    private String test1;

    @RequestMapping("/testconfig")
    public String test1(HttpServletRequest request){

        return "config->"+test1;
    }

}
